package routers

import (
	"face/controllers"
	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/b", &controllers.TestController{})

	// 用户管理
	beego.Router("/user/list", &controllers.UserListController{})
	beego.Router("/user/create", &controllers.UserCreateController{})
	beego.Router("/user/update", &controllers.UserUpdateController{})
	beego.Router("/user/delete", &controllers.UserDeleteController{})
	beego.Router("/user/addface", &controllers.UserAddFaceController{})
	beego.Router("/user/addstranger", &controllers.UserAddStrangerController{})
	beego.Router("/user/detail", &controllers.UserDetailController{})
	beego.Router("/user/verify", &controllers.UserVerifyController{})

	//face
	beego.Router("/face/list", &controllers.FaceListController{})
	beego.Router("/face/delete", &controllers.FaceDeleteController{})
	beego.Router("/face/update", &controllers.FaceUpdateController{})
	beego.Router("/face/detail", &controllers.FaceDetailController{})
	beego.Router("/face/add", &controllers.FaceAddController{})

	// stranger
	beego.Router("/stranger/list", &controllers.StrangerListController{})
	beego.Router("/stranger/delete", &controllers.StrangerDeleteController{})
	beego.Router("/stranger/detail", &controllers.StrangerDeleteController{})

	// bisitor
	beego.Router("/visitor/list", &controllers.VisitorListController{})
}
